package com.design.pattern.structural.decorator.v2;

/**
 * 认认真真写写
 * User: RenQiQiqng
 * Date: 2019/3/10-Time: 17:44
 * Description:
 */
public class Test {
    public static void main(String[] args) {
        ABattercake aBattercake;

        aBattercake = new Battercake();

        aBattercake = new EggDecorator(aBattercake);

        aBattercake = new EggDecorator(aBattercake);

        aBattercake = new SausageDecorator(aBattercake);

        System.out.println(aBattercake.getDesc()+" 销售价格:"+aBattercake.cost());
    }
}
